'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/upload/avator', controller.upload.uploadAvator)
  router.post('/checkFile', controller.upload.checkFile)
  router.post('/upload', controller.upload.upload)
  router.post('/mergeFile', controller.upload.mergeFile)
  router.post('/upload/oss', controller.upload.uploadOss)
  router.get('/upload/oss/list', controller.upload.uploadOssList)
  router.delete('/upload/oss/delete', controller.upload.uploadOssDelete)
};
